Run docker workflow on Astera builder#251
Conversation
📝 WalkthroughWalkthroughThe Docker workflow migrates from ChangesDocker Workflow Astera Migration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates the Docker publishing GitHub Actions workflow to run on the Astera self-hosted builder (keeping Harbor access behind the VPN) and to execute skopeo via a pinned container image instead of installing it on the runner.
Changes:
- Switch Docker publish jobs from
ubuntu-latestto theastera-sh-builderself-hosted runner. - Replace runner
apt-get install skopeousage withdocker run quay.io/skopeo/stable@sha256:…forskopeo copyandskopeo inspect. - Remove GitHub-hosted runner disk cleanup steps from the self-hosted jobs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/docker.yml (1)
118-122: Confirm disk hygiene on the self-hosted Astera runner.Dropping the GitHub-hosted "Free disk space" step is correct for self-hosted runners (the GitHub-hosted cleanup tricks don't apply). But these jobs build large CUDA-based images and write registry buildcache repeatedly; without periodic pruning the persistent runner's disk can fill over time and start failing builds. Consider a scheduled
docker system prune/buildx cache GC on the runner host, or a guarded cleanup step here. The same applies to theasterajob (Lines 188-192).🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/docker.yml around lines 118 - 122, The workflow currently omits any disk-pruning for self-hosted runners after large CUDA image builds; add a guarded cleanup to avoid disk exhaustion by either scheduling host-side maintenance (e.g., cron job running docker system prune --all --volumes and buildx cache garbage-collect) or inserting a conditional cleanup step in the workflow jobs that run heavy builds (refer to the Checkout step and the astera job) that checks runner type and then runs docker system prune and/or buildx cache gc with safe flags and confirmation (or a size/age guard) to avoid removing needed artifacts; ensure the step runs after the build/cache-push phases and is idempotent and non-destructive for GitHub-hosted runners by gating on runner labels.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.github/workflows/docker.yml:
- Around line 118-122: The workflow currently omits any disk-pruning for
self-hosted runners after large CUDA image builds; add a guarded cleanup to
avoid disk exhaustion by either scheduling host-side maintenance (e.g., cron job
running docker system prune --all --volumes and buildx cache garbage-collect) or
inserting a conditional cleanup step in the workflow jobs that run heavy builds
(refer to the Checkout step and the astera job) that checks runner type and then
runs docker system prune and/or buildx cache gc with safe flags and confirmation
(or a size/age guard) to avoid removing needed artifacts; ensure the step runs
after the build/cache-push phases and is idempotent and non-destructive for
GitHub-hosted runners by gating on runner labels.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 6fef4d47-cea2-41d5-baea-31a99972c178
📒 Files selected for processing (1)
.github/workflows/docker.yml
Summary
Validation
Summary by CodeRabbit